home *** CD-ROM | disk | FTP | other *** search
- Path: news.uh.edu!pmn12564
- From: pmn12564@Bayou.UH.EDU (pat neff)
- Newsgroups: comp.lang.c++
- Subject: Pointer to interrupt method in BC 4.52
- Date: 14 Mar 1996 19:37:28 GMT
- Organization: University of Houston
- Message-ID: <4i9sho$3mj@masala.cc.uh.edu>
- NNTP-Posting-Host: bayou.uh.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- I have a class in which one of the methods is an interrupt. Since I need
- to hook the interrupt into the interrupt table, I need a pointer to it.
- Something like:
-
- class myobject {
-
- void interrupt myinterrupt(...);
- void dohook ();
- }
-
- void interrupt myobject::myinterrupt (...)
- {
- // actuall interrupt code here
- }
-
- void myobject::dohook ()
- {
- setvect (0x??, this->myinterrupt);
- }
-
- This compiler complains about the line with SETVECT saying I need to
- call or take the address of the interrupt function. I am trying to take the
- address of course. I have tried everything, but NO LUCK! Can anyone out
- there help me?
-
-